<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>爱购物-商城 - 首页</title>
    <link type="text/css" rel="stylesheet" href="css/style.css"/>
    <script type="text/javascript" src="scripts/function.js"></script>
    <script type="text/javascript" src="scripts/calendar.js"></script>
    <script type="text/javascript">
        function selectname() {
            var name = document.getElementById("selectname").value;
            location.href = 'selectProductList?name=' + name;
        }

        function searchHot(name) {
            location.href = 'selectProductList?name=' + name;
        }
    </script>

</head>
<body>
<div id="header" class="wrap">
    <div id="logo"><img src="images/logo.png"/></div>
    <div class="help"><c:if test="${name!=null}"><a href="selectdd?dd=${name.eu_user_id }">个人订单</a></c:if><c:if
            test="${name!=null}">当前用户${name.eu_user_id }</c:if><a href="ShopSelect" class="shopping">购物车</a><c:if
            test="${name==null}"><a href="login.jsp">登录</a>|<a href="register.jsp">注册</a></c:if><c:if
            test="${name!=null}"><a href="zx">退出</a></c:if><a href="SelallServlet">留言</a><c:if
            test="${name.eu_status==2}"><a href="WEB-INF/manage/index.jsp">去后台</a></c:if></div>
    <div class="navbar">
        <ul class="clearfix">
            <li class="current"><a href="indexSelect">首页</a></li>
        </ul>
    </div>
</div>
<div id="childNav">
    <div class="wrap">
        <ul class="clearfix">
            <li class="first"><a href="javascript:searchHot('音乐')">音乐</a></li>
            <li><a href="javascript:searchHot('影视')">影视</a></li>
            <li><a href="javascript:searchHot('少儿')">少儿</a></li>
            <li><a href="javascript:searchHot('动漫')">动漫</a></li>
            <li><a href="javascript:searchHot('小说')">小说</a></li>
            <li><a href="javascript:searchHot('外语')">外语</a></li>
            <li><a href="javascript:searchHot('数码相机')">数码相机</a></li>
            <li><a href="javascript:searchHot('笔记本')">笔记本</a></li>
            <li><a href="javascript:searchHot('羽绒服')">羽绒服</a></li>
            <li><a href="javascript:searchHot('秋冬靴')">秋冬靴</a></li>
            <li><a href="javascript:searchHot('运动鞋')">运动鞋</a></li>
            <li><a href="javascript:searchHot('美容护肤')">美容护肤</a></li>
            <li><a href="javascript:searchHot('饰品')">饰品</a></li>
            <li class="last"><input type="text" id="selectname"/><a href="javascript:selectname()">搜索</a></li>
        </ul>
    </div>
</div>
<div id="register" class="wrap">
    <div class="shadow">
        <em class="corner lb"></em>
        <em class="corner rt"></em>
        <div class="box">
            <h1>欢迎注册爱购物-商城</h1>
            <ul class="steps clearfix">
                <li class="current"><em></em>填写注册信息</li>
                <li class="last"><em></em>注册成功</li>
            </ul>
            <form id="regForm" method="post" action="register" onsubmit="return checkForm(this);">
                <table>
                    <tr>
                        <td class="field">用户名：</td>
                        <td><input class="text" type="text" name="userName" onfocus="FocusItem(this)"
                                   onblur="CheckItem(this),check(this.value);"/><span id="sp"></span></td>
                    </tr>
                    <tr>
                        <td class="field">姓名：</td>
                        <td><input type="text" class="text" name="name"/></td>
                    </tr>
                    <tr>
                        <td class="field">登录密码：</td>
                        <td><input class="text" type="password" id="passWord" name="passWord" onfocus="FocusItem(this)"
                                   onblur="CheckItem(this);"/><span></span></td>
                    </tr>
                    <tr>
                        <td class="field">确认密码：</td>
                        <td><input class="text" type="password" name="rePassWord" onfocus="FocusItem(this)"
                                   onblur="CheckItem(this);"/><span></span></td>
                    </tr>
                    <tr>
                        <td class="field">性别：</td>
                        <td><input type="radio" name="sex" value="T" checked="checked"/>男 <input type="radio" name="sex"
                                                                                                 value="F"/>女
                        </td>
                    </tr>
                    <tr>
                        <td class="field">出生日期：</td>
                        <td>
                            <input type="text" name="birthday" onfocus="c.showMoreDay = false;c.show(this);"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="field">邮箱：</td>
                        <td><input type="text" class="text" name="email" value=""/></td>
                    </tr>
                    <tr>
                        <td class="field">手机号码：</td>
                        <td><input type="text" class="text" name="mobile" value=""/></td>
                    </tr>
                    <tr>
                        <td class="field">送货地址：</td>
                        <td><input type="text" class="text" name="address" value=""/></td>
                    </tr>
                    <tr>
                        <td class="field">验证码：</td>
                        <td><input class="text verycode" type="text" name="veryCode" onfocus="FocusItem(this)"
                                   onblur="Checknum(this);"/><img id="veryCode" alt="看不清,换一张" style="cursor:hand;"
                                                                  src="usernum?<%=new Date().getTime() %>"
                                                                  onclick="change(this)"/><span id="msg"></span></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><label class="ui-green"><input type="submit" name="submit" disabled=true id="sub"
                                                           value="提交注册"/></label></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <div class="clear"></div>
</div>
<div id="footer">
    Copyright &copy; 2019 爱购物 All Rights Reserved. 苏ICP备案888888号
</div>
</body>
</html>

